import Mock from 'mockjs'

Mock.mock('/api/getList', {
    list: [
        {
            key: '1',
            name: 'John Brown',
            age: 32,
            address: 'New York No. 1 Lake Park',
            tags: ['nice', 'developer'],
        },
        {
            key: '2',
            name: 'Jim Green',
            age: 42,
            address: 'London No. 1 Lake Park',
            tags: ['loser'],
        },
        {
            key: '3',
            name: 'Joe Black',
            age: 32,
            address: 'Sidney No. 1 Lake Park',
            tags: ['cool', 'teacher'],
        },
    ]
})

Mock.mock('/api/getUser', {
    list: [
        {
            key: '4',
            name: '张三',
            age: 32,
            address: 'New York No. 1 Lake Park',
            tags: ['nice', 'developer'],
        },
        {
            key: '5',
            name: '李四',
            age: 42,
            address: 'London No. 1 Lake Park',
            tags: ['loser'],
        }
    ]
})

Mock.mock('/api/getState', {
    list: [
        {
            key: '6',
            name: '赵六',
            age: 32,
            address: 'New York No. 1 Lake Park',
            tags: ['nice', 'developer'],
        },
        {
            key: '7',
            name: '马八',
            age: 42,
            address: 'London No. 1 Lake Park',
            tags: ['loser'],
        },
    ]
})